package com.cn.web;

import com.cn.Utils.RunLogQueue;
import com.cn.entity.RunLog;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by chenyuncong on 2018/8/6.
 */
@RequestMapping("queue")
@RestController
public class QueueTestController {

    @RequestMapping("testQueue")
    public void testQueue(){

        for(int i=0;i<10000;i++){
            RunLogQueue.put(new RunLog(i));
        }

    }

}
